package com.lagou.test04.test01;

import java.util.List;

public interface StudentService {

    /**
     * 新增学生
     * @param student
     * @return
     */
    public boolean addStudent(Student student) throws StuNoException;

    /**
     * 通过学号删除学生
     * @param stuNo
     * @return
     */
    public boolean delStudent(int stuNo);

    /**
     * 修改学生
     * @param student
     * @return
     */
    public boolean updateStudent(Student student) throws StuNoException;

    /**
     * 通过学号查询学生详情
     * @param stuNo
     * @return
     */
    public Student queryStudentInfo(int stuNo);


    /**
     * 遍历学生列表
     * @param
     * @return
     */
    public void queryStudentList();


    public List<Student> getStudents();

    public void setStudents(List<Student> students);
}
